package com.sgb.goods.test;

import android.content.Context;
import android.widget.TextView;

import com.sgb.goods.R;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

/**
 * CompanyAdapter
 * @author cyj
 */
public class CompanyAdapter extends BaseRecycleAdapter<CompanyEntity> {

    public CompanyAdapter(Context context) {
        super(context, R.layout.goods_item_simple_text, null);
    }

    @Override
    public void convert(ItemViewHolder holder, CompanyEntity companyEntity) {
        TextView text1 = ((TextView) holder.getView(R.id.text1));
        text1.setTextSize(18);
        text1.setPadding(0, 20, 0, 20);
        text1.setText(companyEntity.compName);
    }
}
